package com.markhsiu.mysql.packet.server;

import com.markhsiu.mysql.packet.MySQLMessage;
import com.markhsiu.mysql.packet.MysqlPacket;
import com.markhsiu.mysql.packet.PacketReadable;

/**
 * 错误响应包
 * @author Administrator
 *
 */
public class ErrorPacket extends MysqlPacket  implements PacketReadable{
	
	/**
	 * Error报文，值恒为0xFF
	 */
	private byte code = PACKET_ERROR;

	/**
	 * 错误编号（小字节序）
	 */
	private int errorNo;

	/**
	 * 服务器状态标志，恒为'#'字符
	 */
	private byte mark;

	/**
	 * 服务器状态（5个字符）
	 */
	private byte[] serverStatus;

	/**
	 * 响应信息
	 */
	public byte[] message;

	@Override
	public void read(MySQLMessage message) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public String descrption() {
		// TODO Auto-generated method stub
		return null;
	}
 

	 
}
